<!-- Personal.html -->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<title>认证个人中心</title>
		<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
		<link rel="stylesheet" type="text/css" href="../../css/base.css"/>
		<link rel="stylesheet" href="../../css/CFNetPP_Base.css">
		<style>
			.aui-bar-nav .aui-bar-btn-item.aui-active {
				background-color: #ffffff;
				color: #36353a;
			}
		</style>
	</head>
	<body>
		<div class="base_style_color " id='BarAppearance' style="height: 22px;width: 100%"></div>
		<div class="aui-bar aui-bar-nav base_style_color" style="top: 22px">
			<a class="base_left_item" href="#" onclick="backIndex()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<div class="aui-title">
				<div class="aui-bar aui-bar-btn ">
					<a id="items0" class="aui-items aui-bar-btn-item aui-active" href="#" onclick="item2Click(0)"> 我的认证 </a>
					<a id="items1" class="aui-items aui-bar-btn-item" href="#" onclick="item2Click(1)"> 我的证书 </a>
				</div>
			</div>
		</div>
	</body>
	<script src="../../script/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<!--<script type="text/javascript" src="../../script/MD5.js"></script>-->
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<!--<script type="text/javascript" src="../../script/databaseOperation.js"></script>-->
	<!--<script src="../script/attachmentManager.js"></script>-->
	<script type="text/javascript">
		var itemIndex1 = 0;
		function item2Click(itemIndex) {
			itemIndex1 = itemIndex;
			if (itemIndex == 0) {
				SendBehaviorTrajectoriesNotifi1('0', '我的认证列表页', '124', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			} else {
				SendBehaviorTrajectoriesNotifi1('0', '我的认证证书列表页', '152', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			}
			if (!$('#items' + itemIndex).hasClass('aui-active')) {
				$('.aui-items').removeClass('aui-active');
				$('#items' + itemIndex).addClass('aui-active');
				setupGroupIndex(itemIndex);
			}
		}

		apiready = function() {
			setupSubframe();
			setupNotifi();
		}
		function setupNotifi() {
			api.addEventListener({
				name : 'showPersonNotifi'
			}, function(ret, err) {
				//			alert("page");
				if (itemIndex1 == 0) {
					SendBehaviorTrajectoriesNotifi1('0', '我的认证列表页', '124', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
				} else {
					SendBehaviorTrajectoriesNotifi1('0', '我的认证证书列表页', '152', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
				}
				showCourseFrameGroup();
			});
			api.addEventListener({
				name : 'hidePersonNotifi'
			}, function(ret, err) {
				hideCourseFrameGroup();
			});
		}

		function showCourseFrameGroup() {
			api.setFrameGroupAttr({
				name : 'segmentF',
				hidden : false
			});
		}

		function hideCourseFrameGroup() {
			api.setFrameGroupAttr({
				name : 'segmentF',
				hidden : true
			});
		}

		//切换窗口
		function setupGroupIndex(index) {
			api.setFrameGroupIndex({
				name : 'segmentF',
				index : index,
				scroll : false
			});
		}

		function setupSubframe() {
			var y = $('.aui-bar').height() + 22;
			var h = api.winHeight - y - 52;
			var rect = {
				x : 0,
				y : y,
				w : 'auto',
				h : h
			}
			var frames = [{
				name : 'MyCertificationFrame',
				url : 'MyCertificationFrame.html',
				bounces : false,
				bgColor : '#F0F0F0',
				pageParam : {
					sourceurl : window.location.pathname,
					sourcetitle : document.title
				}
			}, {
				name : 'MyAttestationFrame',
				url : 'MyAttestationFrame.html',
				bounces : false,
				bgColor : '#F0F0F0',
				pageParam : {
					sourceurl : window.location.pathname,
					sourcetitle : document.title
				}
			}];
			api.openFrameGroup({
				name : 'segmentF',
				scrollEnabled : false,
				rect : rect,
				index : 0,
				frames : frames,
				vScrollBarEnabled : true,
				hScrollBarEnabled : false,
				preload : 1
			}, function(ret, err) {
			});
			if(api.pageParam.index ==0){//1：首页
			hideCourseFrameGroup();
			}
		}
	</script>
</html>
